import axios from 'axios'
export default {
  namespaced: true,
  state: {
    list: []

  },
  mutations: {
    changeList (state, list) {
      state.list = list
    }
  },
  actions: {
    async getList (context) {
      const res = await axios.get('http://localhost:3000/cart')
      console.log(res)
      context.commit('changeList', res.data)
    }
  },
  getters: {

  }
}
